package com.woniu.service.impl;


import com.woniu.dao.FirstTrialDao;
import com.woniu.dao.LoanInfoDao;
import com.woniu.entity.FirstTrail;
import com.woniu.service.FirstTrialService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


@Service
public class FirstTrialServiceImpl implements FirstTrialService {

    @Resource
    FirstTrialDao firstTrialDao;

    @Override
    public List<FirstTrail> findFirstTrialList(FirstTrail firstTrail) {
        return firstTrialDao.selectFirstTrailList(firstTrail);
    }

    @Override
    public int updateFirstTrial(FirstTrail firstTrail) {
        int row =  firstTrialDao.updateFirstTrial(firstTrail);
        return row;
    }

    @Override
    public FirstTrail findFirstTrialById(Integer id) {
        return firstTrialDao.findFirstTrailListById(id);
    }
}
